package com.dagene.weixin.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.dagene.weixin.entity.Admin;
import com.dagene.weixin.repository.AdminDao;

@Component
@Transactional(rollbackFor = Exception.class)
public class AdminService {
	@Autowired
	AdminDao adminDao;

	public Admin getAdmin(String username) {
		return adminDao.findByUsername(username);
	}
	
	
}
